﻿using System;
using System.Text.RegularExpressions;

namespace com.igetui.api.openservice.utils
{
	// Token: 0x02000039 RID: 57
	internal class LangUtils
	{
		// Token: 0x060004D7 RID: 1239 RVA: 0x0000BA07 File Offset: 0x00009C07
		public static bool validateDate(string date)
		{
			return date != null && LangUtils.REGEX.IsMatch(date) && DateTime.ParseExact(date, "yyyyMMdd", null) < DateTime.Now;
		}

		// Token: 0x040002CD RID: 717
		private static Regex REGEX = new Regex("^(?:(?!0000)[0-9]{4}(?:(?:0[1-9]|1[0-2])(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])(?:29|30)|(?:0[13578]|1[02])31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)0229)$");
	}
}
